<!DOCTYPE html>
<html>
<head>
    <title>盒子阴影</title>
    <style>
        div {
            height: 200px;
            width: 200px;
            margin: 100px auto;
            background-color: salmon;
        }
        div:hover{
            box-shadow: 10px 10px 5px -3px rgb(0 0 0 / 30%);
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>